#ifndef     ACTION_H_
# define    ACTION_H_

struct action
{
    static float const SHOOT_MAX = .5;

    float   shoot; // time before the player can shoot once more
    bool    left;
    bool    right;
    bool    jump;
    bool    prevSpaceUp;

    action() : shoot(0), left(false), right(false), jump(false), prevSpaceUp(true) {}
    void resetBool() { left = false; right = false; jump = false; }
};

#endif   /* ACTION_H_ */
